Model Training Workbench

The Model Training Workbench is a centralized dashboard which displays the ML models published and available for training. The Model training workbench module enables you to train and publish models that can auto-populate ontology fields by identifying business keywords and document logos. Keyword and image identification leads to document source identification, and this enables the application to lookup for source specific information in the database. If the information is available, it is used to auto-populate the ontology fields as per the requirements. Auto-populating saves time as it is quicker than the regular OCR-and-rule based extraction and more reliable.

Note

The accuracy and reliability of the models in finding correct data depends upon how well they have been trained.

 

Accessing model training workbench

To access the Model Training Workbench page, follow these steps:

In the main menu, and under TruCap+ Studio, click Model Training Workbench. The Model Training Workbench page opens.

Column header descriptions

COLUMN NAME

DESCRIPTION

Batch Name

Displays the name of a specific batch.

Model Version

Displays the version of a given batch.

OCR Engine

Displays the name of the selected OCR engine for a given batch (This column is visible when you select the Doc Classification for Text ML model from the ML Model drop-down list).

Model Name

Displays the name of the model.

Train Set File Count

Displays the number of files used to train a model.

F1 Score/Accuracy

Displays the accuracy results (in %) based on the test done on the available models.

Date of Publish

Displays the date when a model was published.

Class Name

Displays the class name to which the model is associated.

Status

Displays the current status of the model.

Note

Click to display the number of annotations categorized by class, such as SSN, PAN, invoice, etc. A Model Information pop-up provides the percentage and total number of annotation sets (see below image).

An ideal ML model should have an equal number of annotations in each class for optimal accuracy. If not, then the model is treated as imbalanced. Depending on the accuracy, the status messages such as Balanced data, Low imbalance, and Highly imbalanced for the model are displayed. To know more about the status message, See example: ClosedIf there are 3 classes defined for an ML model, then the percentage should be ideally 33.33% (100/3) in the case of 3 classes. Depending on the following criteria, the status messages are displayed.
If the percentage is + or -5 — Balanced data
If the percentage is + or -10 — Low imbalance
If the percentage is + or -20 — Highly imbalanced

In the Model training workbench, you can classify documents based on image and text. The two available methods are:

  1. Document classification for image: This method involves training models to classify documents based on their visual content.

  2. Document classification for text: Utilize this method to classify documents by analyzing their textual content.

 

Document classification for image

Document classification for image involves the following steps:

  1. Adding a new model.

  2. Annotating keyword and training the model.

  3. Publishing a model.

 

Adding a model

You need to have a model (comprising of a batch) for ML model training. To add a model, follow these steps:

  1. On the Model training workbench page, select Doc Classification For Image from the ML Model drop-down list for which you want to add a model. The following page opens.

  2. On the top-right corner of the page, click New Model. The Model Name window opens.

  3. Enter the required model name and click Upload Batch. The Add Batch window opens.

Fill-in the details based on the following field descriptions.

FIELD

DESCRIPTION

Batch Name*

The name of the batch that is to be created.

Upload Document*

Click on the Select File link to upload the batch files.

Selected Files

Displays the total number of selected files for a batch.

Cancel

To exit without saving any unsaved changes.

Save

To exit after saving the changes.

* Mandatory fields

A model will be created and appear on the Model training workbench page.

Note

Models can be deleted by selecting them in the Model training workbench page, and then clicking on Delete.

 

Setting annotation and training the model

Annotating a batch refers to labelling the images identified in a given batch (of documents). After you have annotated the required model, you can train and publish the required model.

To annotate a model, follow these steps:

  1. On the Model training workbench page, select Doc classification for image from the ML Model drop-down list. A View Document Classification Image link is visible. Click on the link. The Doc Classification For Image page opens.

Column header descriptions

COLUMN NAME

DESCRIPTION

Batch Name

Displays the name of a given batch.

Last Updated Date

Displays the date on which the batch was last updated.

Version

Displays the version of a given batch.

Pending for Annotation

Displays the name of documents pending in a batch for annotation.

Status

Displays the current status of the batch.

  1. In the Upload Batch panel, select the batch that you want to annotate and click Annotate. The Upload Batch panel collapses and the Set Annotation panel expands.

Note

In case a batch is not required to be included in the model, you can delete it by clicking on the respective icon.

All the documents in the batch are processed and appear under each other in the panel as shown below.

You can use the features available on the taskbar to delete a document, or to navigate the document, or to change the size of the displayed document, or to rotate the document.

Hover-over the above image to know about the available features.

 

Publishing a model

Publishing a model means to make it available to the application for use in processing the documents. Published models are applied for processing one-by-one starting from the earliest version (1.00) available to the latest until one of them provides a result. MoreClosedIn actual scenario, before the published models are applied for processing a document, one more model called the base model is applied. It is an in-built model that can be customized before or after the application is installed.

  1. To publish the new model, select the model (whose status shows Ready to Publish) and then click Publish. The published model will appear on the model information page.

Note

The Publish button gets enabled only for the models whose training is completed.

 

 

Note:

Removing a ML model is a permanent action, and once removed, the model cannot be recovered. If needed in the future, you'll have to either re-publish or re-train the model according to your requirements.

To remove a published model, follow these steps:

  1. Access the Model Information page. This page provides a comprehensive overview of all the trained ML models available.

  1. On the Model Information page, under the Custom tab, identify and find the Doc Classification Image ML model you wish to remove. Utilize the Search field to filter and find specific records within the displayed grid (Refer searching data).

  2. Click under Action column corresponding to the Doc Classification Image ML model to remove the ML model. A Attention window opens.

  3. Click Yes to permanently remove the ML model from the list. You can view the removed model on the Model Training Workbench > Doc Classification for Image page.

 

Re-publishing a model is a crucial step in ensuring that the latest improvements or modifications are reflected in its performance.

Note:

Before initiating the re-publishing process, carefully review the existing details of the model and make any necessary updates to align with your desired changes.

To re-publish a model, follow these steps:

  1. On the Model Training Workbench > Doc Classification for Image page, identify the ML model that you want to re-publish. Models that are not currently published will likely be displayed as UnPublished.

  2. Select the unpublished model available in the panel, which you want to re-publish. A Publish button is visible.

  3. Click Publish to re-publish the model. Once published, the status of the model changes from UnPublished to Published indicating that the re-publishing process was successful.

    You can view the published model on the Model Information page. Take a moment to review the details associated with the re-published model.

 

 

Document classification for text

Document classification for text involves the following steps:

  1. Adding a new model.

  2. Annotating keyword and training the model.

  3. Publishing a model.

 

Adding a model

You need to have a model (comprising of a batch) for ML model training. To add a model, follow these steps:

  1. On the Model training workbench page, select Doc Classification For Text from the ML Model drop-down list for which you want to add a model. The following page opens.

  2. On the top-right corner of the page, click New Model. The Model Name window opens.

  3. Enter the required model name and select the required OCR Engine from the drop-down list and click Upload Batch. The Add Batch window opens.

Fill-in the details based on the following field descriptions.

FIELD

DESCRIPTION

Batch Name*

The name of the batch that is to be created.

Upload Document*

Click on the Select File link to upload the batch files.

Selected Files

Displays the total number of selected files for a batch.

Cancel

To exit without saving any unsaved changes.

Save

To exit after saving the changes.

* Mandatory fields

A model will be created and appear on the Model training workbench page.

Note

Models can be deleted by selecting them in the Model training workbench page, and then clicking on Delete.

 

Setting annotation and training the model

Annotating a batch refers to labelling the logos identified in a given batch (of documents). After you have annotated the required model, you can train and publish the required model.

To annotate a model, perform the following steps:

  1. On the Model training workbench page, select Doc classification for text from the ML Model drop-down list. A View Document Classification Image link is visible. Click on the link. The Doc Classification For Text page opens.

Column header descriptions

COLUMN NAME

DESCRIPTION

Batch Name

Displays the name of a given batch.

Last Updated Date

Displays the date on which the batch was last updated.

Version

Displays the version of a given batch.

Pending for Annotation

Displays the name of documents pending in a batch for annotation.

Status

Displays the current status of the batch.

  1. In the Upload Batch panel, select the batch that you want to annotate and click Annotate. The Upload Batch panel collapses and the Set Annotation panel expands.

Note

In case a batch is not required to be included in the model, you can delete it by clicking on the respective icon.

All the documents in the batch are processed and appear under each other in the panel as shown below.

You can use the features available on the taskbar to save a document, or to navigate the document, or to change the size of the displayed document, or to rotate the document.

Hover-over the above image to know about the available features.

 

Publishing a model

Publishing a model means to make it available to the application for use in processing the documents. Published models are applied for processing one-by-one starting from the earliest version (1.00) available to the latest until one of them provides a result. MoreClosedIn actual scenario, before the published models are applied for processing a document, one more model called the base model is applied. It is an in-built model that can be customized before or after the application is installed.

  1. To publish the new model, select the model (whose status shows Ready to Publish and then click Publish. The published model will appear on the model information page.

Note

The Publish button gets enabled only for the models whose training is completed.

 

 

Note:

Removing a ML model is a permanent action, and once removed, the model cannot be recovered. If needed in the future, you'll have to either re-publish or re-train the model according to your requirements.

To remove a published model, follow these steps:

  1. Access the Model Information page. This page provides a comprehensive overview of all the trained ML models available.

  1. On the Model Information page, under the Custom tab, identify and find the Doc Classification Text ML model you wish to remove. Utilize the Search field to filter and find specific records within the displayed grid (Refer searching data).

  2. Click under Action column corresponding to the Doc Classification Text ML model to remove the ML model. A Attention window opens.

  3. Click Yes to permanently remove the ML model from the list. You can view the removed model on the Model Training Workbench > Doc Classification for Text page.

 

Re-publishing a model is a crucial step in ensuring that the latest improvements or modifications are reflected in its performance.

Note:

Before initiating the re-publishing process, carefully review the existing details of the model and make any necessary updates to align with your desired changes.

To re-publish a model, follow these steps:

  1. On the Model Training Workbench > Doc Classification for Text page, identify the ML model that you want to re-publish. Models that are not currently published will likely be displayed as UnPublished.

  2. Select the unpublished model available in the panel, which you want to re-publish. A Publish button is visible.

  3. Click Publish to re-publish the model. Once published, the status of the model changes from UnPublished to Published indicating that the re-publishing process was successful.

    You can view the published model on the Model Information page. Take a moment to review the details associated with the re-published model.